﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default"
    MasterPageFile="~/Rondo.master" %>

<%@ Register Src="~/Controls/CalendarControl.ascx" TagPrefix="uc" TagName="Calendar" %>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">

    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>

    <script src="js/jquery.nivo.slider.pack.js" type="text/javascript"></script>

    <script type="text/javascript">
        $(window).load(function() {
            $('#slider').nivoSlider({
                effect: 'random',
                slices: 15,
                animSpeed: 500,
                pauseTime: 3000,
                startSlide: 0, //Set starting Slide (0 index)
                directionNav: false, //Next &amp; Prev
                directionNavHide: true, //Only show on hover
                controlNav: true, //1,2,3...
                controlNavThumbs: false, //Use thumbnails for Control Nav
                controlNavThumbsSearch: '.jpg', //Replace this with...
                controlNavThumbsReplace: '_thumb.jpg', //...this in thumb Image src
                keyboardNav: true, //Use left &amp; right arrows
                pauseOnHover: true, //Stop animation while hovering
                manualAdvance: false, //Force manual transitions
                captionOpacity: 0.8, //Universal caption opacity
                beforeChange: function() { },
                afterChange: function() { },
                slideshowEnd: function() { } //Triggers after all slides have been shown
            });
        });
    </script>

    <div id="slider" class="mainflash">
        <%=sImages %>
    </div>
        <div class="maintext">
            <div id="ContentTitle" runat="server">
            </div>
            <div style="height: 210px;">
                <%=Article %></div>
        </div>
        <div class="cal1">
            <h2>
                <%=FUNC.GetPhrase(7) %></h2>
            <uc:Calendar runat="server" ID="Calendar1" />
            <asp:DataList runat="server" ID="dlEvents">
                <ItemTemplate>
                    <asp:Label runat="server" ID="lblDate" CssClass="MainPageEvents" Text='<%# Convert.ToDateTime(Eval("startdate")).ToString("dd.MM") %>'></asp:Label>
                    <asp:HyperLink runat="server" ID="lnkText" CssClass="MainPageEvents" Text='<%# Eval("Title")%>' NavigateUrl='<%# Eval("ID","article.aspx?ID={0}")  %>'></asp:HyperLink>
                </ItemTemplate>
            </asp:DataList>
        </div>
        <div style="clear:both;"></div>
        <div class="MPFooter">
            <div class="mainb1">
                <a href="about.aspx">
                    <%=FUNC.GetPhrase(2) %></a></div>
            <div class="mainb2">
                <a href="events.aspx">
                    <%=FUNC.GetPhrase(12) %></a></div>
        </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Footer" Visible="false" runat="Server">
</asp:Content>
